package com.cloudkinto.vo.order.returns.pack;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class OrWmsPackScanReq {
    private Long id;

    @ApiModelProperty("到仓状态 0 未到 1到了")
    private int reach;

    @ApiModelProperty("暂存库位id")
    private Long locationId;

    @ApiModelProperty("length_w")
    private Double lengthW;

    @ApiModelProperty("width_w")
    private Double widthW;

    @ApiModelProperty("height_w")
    private Double heightW;

    @ApiModelProperty("weight_w")
    private Double weightW;


    @ApiModelProperty("物流跟踪号")
    private String trackNo;
    @ApiModelProperty("承运商")
    private String logisticsCarrierName;

    public Double getLengthW() {
        if (lengthW == null) {
            return 0d;
        }
        return lengthW;
    }

    public Double getWidthW() {
        if (widthW == null) {
            return 0d;
        }
        return widthW;
    }

    public Double getHeightW() {
        if (heightW == null) {
            return 0d;
        }
        return heightW;
    }

    public Double getWeightW() {
        if (lengthW == null) {
            return 0d;
        }
        return weightW;
    }
}
